package com.example.utils;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.Subject;

/**
 * @author code威
 * @version 1.0
 * @description: shiro工具类
 * @date 2021/12/19 20:38
 */
public class ShiroUtils {

    public static Subject getSubject()
    {
        return SecurityUtils.getSubject();
    }

    public static Session getSession()
    {
        return SecurityUtils.getSubject().getSession();
    }
}
